package com.h.heal.service;

import com.h.heal.common.MyPageInfo;
import com.h.heal.entity.Comment;
import com.h.heal.entity.Topic;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CommentService {
    List<Comment> findAll();

    void deleteById(int id);

    //视频名查找评论
    List<Comment> findByComment_vid(String comment_vid);
    //用户名查找评论
    List<Comment> findByComment_uid(String topic_uid);

    String create(Comment comment);

    Comment findById(int id);

    MyPageInfo findBySearch(HttpServletRequest request);


    MyPageInfo findBySearchUser(HttpServletRequest request);

}
